  import wepy from 'wepy';
  import validate from '../utils/Validate';

  export default class baseMixin extends wepy.mixin {
    config = {
       usingComponents: {
       	'wxc-loading': '../../packages/@minui/wxc-loading/dist/index',
      }
    }
    data = {
      isShow:false,
    }
    optional(value) {
      return validate.optional(value)
    }
    isNotBlankObjs(...vals) {
      return validate.isNotBlankObjs(...vals)
    }
    isNotBlankObj(value) {
      return validate.isNotBlankObj(value)
    }
    modelCopy (data) {
      return JSON.parse(JSON.stringify(data))
    }
    onLoad() {
    }
    loaded() {
      this.isShow = false;
      this.$apply();
    }
    methods = {
    };
  }
